﻿using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using Cnm.Core.Infrastructure;
using Cnm.Mvc.Web.Infrastructure;

namespace Cnm.Mvc.Web
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            //initialize engine context
            EngineContext.Initialize(false);
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AutoMapperWebConfiguration.ConfigureUserMapping();
        }
    }
}
